package pkg

import (
	"strconv"
	"strings"
)

func StringToInt64(s string) int64 {
	intResult, _ := strconv.Atoi(s)
	return int64(intResult)
}

func DirTag2PathName(dirTag string) (pathName string) {
	pathName = "[" + dirTag + "]"
	return pathName
}

func PathName2DirTag(PathName string) (dirTag string) {
	s1 := strings.Trim(PathName, "[")
	dirTag = strings.TrimSuffix(s1, "]")
	return dirTag
}
